package com.wdl.modules.myhouse.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wdl.modules.myhouse.entity.UserEntity;
import com.wdl.modules.myhouse.security.entity.UserInfo;

/**
 * 用户表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-08-13
 */
public interface UserService extends IService<UserEntity> {

    UserEntity getUserByUserId(Integer userId);

    /**
     * 根据用户名查找用户信息
     * @param mail
     * @return
     */
    UserInfo getUserInfoByMail(String mail);
}